home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / CBSA / EDUCATION / WINDOW / h / WimpWindow < prev    next >
Text File  |  1998-04-27  |  1KB  |  75 lines

  1.  
  2. //-----------------------------------
  3. //             WimpWindow.h
  4. //-----------------------------------
  5.  
  6.  
  7. #ifndef WimpWindow_H
  8. #define WimpWindow_H
  9.  
  10. #include "IconData.h"
  11. #include "Template.h"
  12.  
  13. class WimpWindow
  14. {
  15.   friend class MenuItem;
  16.   friend class WimpMenu;
  17.   friend class WimpIcon;
  18.   friend class WimpTask;
  19.   
  20.   public: 
  21.  
  22.   struct parameters
  23.   {  
  24.     int handle;
  25.     int xmin;    int ymin;
  26.     int xmax;    int ymax;
  27.     int scrollx;int scrolly;
  28.     int window_behind;
  29.     int flags;
  30.     unsigned char title_fcolor;
  31.     unsigned char title_bcolor;
  32.     unsigned char area_fcolor;
  33.     unsigned char area_bcolor;
  34.     unsigned char scrollbar_bcolor;
  35.     unsigned char scrollbar_fcolor;
  36.     unsigned char title_selectcolor;
  37.     unsigned char no_use;
  38.     int Xmin;    int Ymin;
  39.     int Xmax;    int Ymax;
  40.     int title_flags;
  41.     int area_flags;
  42.     int sprite_area;
  43.     short width_min;
  44.     short height_min;
  45.     IconData title;
  46.     int nb_icons;
  47.     IconBlock icon[1];
  48.   };
  49.   
  50.   protected:
  51.     
  52.   parameters *data;
  53.   
  54.   public:
  55.   
  56.   WimpWindow(char *, int , int, int, int,
  57.              int = 0x86000002, int = 0, int = 0);
  58.   WimpWindow(const Template::Entry &);
  59.   ~WimpWindow();
  60.   
  61.   void WimpWindow::operator = (const Template::Entry &);
  62.   
  63.   void relocate_indirect_icon(IconData::IndirectText &);
  64.   void relocate_TemplateWindow();
  65.   
  66.   void open();
  67.   void close();
  68.   operator int();
  69. };
  70.  
  71. #endif
  72.  
  73.  
  74.  
  75.